<?php
/**
 * Contact Component
 * Load a Contact via the DAO, use this component instead of using the contact
 * object directly
 *
 * @author Xavier VILAIN
 * @package Shama\Contact
 * @license
 *
 */
use Shama\Contact;

$xview = Xview::instance();
$id = $xview->val('inLineId');

try {
	return \Fox\Dao::load(Contact::className(),$id);
}
catch (Fox\Object\Exception\Save $e)
{
	$xview->systemError();
}